package createPattern.factory.model;

public class Character {

    private String name;
    private WeaponType weaponType;
    private String stageLine;

    public Character(String name, WeaponType weaponType, String stageLine) {
        this.name = name;
        this.weaponType = weaponType;
        this.stageLine = stageLine;
    }

    public void show() {
        System.out.println(name + ":" + stageLine +
                "\n攻击方式：" + weaponType.getName() + "\n");
    }
}
